Skip to content

Conversation

@oarchambault
Copy link

@oarchambault oarchambault commented Aug 5, 2025

Hello, I discovered resvg and this project recently and it would fit very well for the problem I am working on.

But like it is done in resvg CLI, I would need to specify the font for a generic font family when rendering SVG content.

You can see those options for usvg being used here.

That's 5 possible values that are ultimately used to setup fontdb and set the font for the generic font families:

  • serif
  • sans-serif
  • cursive
  • fantasy
  • monospace

So I added those parameters to the ResvgSharp options and use them to setup fontdb in the Rust wrapper, like it's done in usvg.

Thank you

@bburgy
Copy link

bburgy commented Oct 13, 2025

Any news @nielsbosma?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants